package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicCartypeContentMapper;
import com.whq.entity.BasicCartypeContent;
import com.whq.service.BasicCartypeContentService;

@Service(value = "tcBasicCartypeContentService")
public class BasicCartypeContentServiceImpl implements BasicCartypeContentService {

    @Autowired
    private BasicCartypeContentMapper<BasicCartypeContent>tcBasicCartypeContentMapper;
    
    @Override
    public Integer insertSelective(BasicCartypeContent tcBasicCartypeContent) throws Exception {
           return this.tcBasicCartypeContentMapper.insertSelective(tcBasicCartypeContent);
        }

    @Override
    public Integer insertBatch(List<BasicCartypeContent> tcBasicCartypeContent) throws Exception {
           return this.tcBasicCartypeContentMapper.insertBatch(tcBasicCartypeContent) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tcBasicCartypeContentMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tcBasicCartypeContentMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicCartypeContent tcBasicCartypeContent) {
           return this.tcBasicCartypeContentMapper.updateByPrimaryKeySelective(tcBasicCartypeContent);
    }

    @Override
    public BasicCartypeContent findById(Object id) {
           return (BasicCartypeContent) this.tcBasicCartypeContentMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicCartypeContent> selectByCondition(BasicCartypeContent tcBasicCartypeContent) {
           return (List<BasicCartypeContent>) this.tcBasicCartypeContentMapper.selectByCondition(tcBasicCartypeContent);
    }

    @Override
    public Integer selectCountByCondition(BasicCartypeContent tcBasicCartypeContent) {
           return  this.tcBasicCartypeContentMapper.selectCountByCondition(tcBasicCartypeContent);
    }

}
